import {request} from '/utils/http'

Page({
  data: {
    list:[]
  },
  onLoad() {
    this.getList()
  },
  getList(){
    request('/order/request', 'get').then(res => {
      if (res.code == 200) {
        this.setData({
          list:res.data
        })
      }
    })
  },
  toDetail(e){
    console.log(e)
    let id = e.target.dataset.id;
    my.navigateTo({ url: '/pages/complaint/detail/detail?id=' + id})

  }
});
